<?php

namespace State;

include_once "Context.php";
include_once "StateInterface.php";

/** 状态模式抽象父类 */
class StateAbstract
{
    /** 修改context里state的状态实体类 */
    public function updateState(Context $context, StateInterface $state)
    {
        $context->state = $state;
    }
}